package com.example.job.domain.message;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import com.example.core.domain.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.NoArgsConstructor;


@Data
@NoArgsConstructor
@TableName("tb_message_text")
public class MessageText extends BaseEntity {

	@TableId(value = "TEXT_ID", type = IdType.ASSIGN_ID)
	@Schema(description = "消息内容 id")
	private Long textId;

	@Schema(description = "消息标题")
	private String messageTitle;

	@Schema(description = "消息内容")
	private String messageContent;

	@Schema(description = "发布人id")
	private Long userId;

	@Schema(description = "消息类型（1 系统消息）")
	private Integer messageType;

	public MessageText(String messageTitle, String messageContent, Long userId, Integer messageType) {
		this.messageTitle = messageTitle;
		this.messageContent = messageContent;
		this.userId = userId;
		this.messageType = messageType;
	}
}